<!DOCTYPE html>
<html lang="en"  xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="author" content="Aviators - byaviators.com">

    <link href='http://fonts.useso.com/css?family=Open+Sans:400,700,300' rel='stylesheet' type='text/css'>
    <link rel="shortcut icon" th:href="@{/assets/img/favicon.png}" type="image/png">
    <link rel="stylesheet" th:href="@{/assets/css/bootstrap.css}" type="text/css">
    <link rel="stylesheet" th:href="@{/assets/css/bootstrap-responsive.css}" type="text/css">
    <link rel="stylesheet" th:href="@{/assets/libraries/chosen/chosen.css}" type="text/css">
    <link rel="stylesheet" th:href="@{/assets/libraries/bootstrap-fileupload/bootstrap-fileupload.css}" type="text/css">
    <link rel="stylesheet" th:href="@{/assets/libraries/jquery-ui-1.10.2.custom/css/ui-lightness/jquery-ui-1.10.2.custom.min.css}" type="text/css">
    <link rel="stylesheet" th:href="@{/assets/css/realia-blue.css}" type="text/css" id="color-variant-default">
    <link rel="stylesheet" href="#" type="text/css" id="color-variant">

    <!-- Bootstrap 3.3.7 -->
    <link rel="stylesheet" th:href="@{/AdminLTE/bower_components/bootstrap/dist/css/bootstrap.min.css}">
    <!-- Font Awesome -->
    <link rel="stylesheet" th:href="@{/AdminLTE/bower_components/font-awesome/css/font-awesome.min.css}">
    <!-- Ionicons -->
    <link rel="stylesheet" th:href="@{/AdminLTE/bower_components/Ionicons/css/ionicons.min.css}">
    <!-- daterange picker -->
    <link rel="stylesheet" th:href="@{/AdminLTE/bower_components/bootstrap-daterangepicker/daterangepicker.css}">
    <!-- bootstrap datepicker -->
    <link rel="stylesheet" th:href="@{/AdminLTE/bower_components/bootstrap-datepicker/dist/css/bootstrap-datepicker.min.css}">
    <!-- iCheck for checkboxes and radio inputs -->
    <link rel="stylesheet" th:href="@{/AdminLTE/plugins/iCheck/all.css}">
    <!-- Bootstrap Color Picker -->
    <link rel="stylesheet" th:href="@{/AdminLTE/bower_components/bootstrap-colorpicker/dist/css/bootstrap-colorpicker.min.css}">
    <!-- Bootstrap time Picker -->
    <link rel="stylesheet" th:href="@{/AdminLTE/plugins/timepicker/bootstrap-timepicker.min.css}">
    <!-- Select2 -->
    <link rel="stylesheet" th:href="@{/AdminLTE/bower_components/select2/dist/css/select2.min.css}">
    <!-- Theme style -->
    <link rel="stylesheet" th:href="@{/AdminLTE/dist/css/AdminLTE.min.css}">
    <!-- AdminLTE Skins. Choose a skin from the css/skins
         folder instead of downloading all of them to reduce the load. -->
    <link rel="stylesheet" th:href="@{/AdminLTE/dist/css/skins/_all-skins.min.css}">

    <title>用户订单列表</title>
</head>
<body>
<div id="wrapper-outer" >
    <div id="wrapper">
        <div id="wrapper-inner">
            <!-- BREADCRUMB -->
            <div class="breadcrumb-wrapper">
                <div class="container">
                    <div class="row">
                        <div class="span12">
                            <ul class="breadcrumb pull-left">
                                <li><a href="/hotel/search">主页</a></li>
                            </ul><!-- /.breadcrumb -->

                            <div class="account pull-right">
                                <div th:if="${session.userID} != null">
                                    <ul class="nav nav-pills">
                                        <li><a href="/user">个人信息</a></li>
                                    </ul>
                                </div>
                            </div>
                        </div><!-- /.span12 -->
                    </div><!-- /.row -->
                </div><!-- /.container -->
            </div><!-- /.breadcrumb-wrapper -->

            <!-- HEADER -->
            <div id="header-wrapper">
                <div id="header">
                    <div id="header-inner">
                        <div class="container">
                            <div class="navbar">
                                <div class="navbar-inner">
                                    <div class="row">
                                        <div class="logo-wrapper span4">
                                            <div class="logo">
                                                <a th:href="@{index.html}" title="Home">
                                                    <img th:src="@{/assets/img/logo.png}" alt="Home">
                                                </a>
                                            </div><!-- /.logo -->

                                            <div class="site-name">
                                                <a th:href="@{/}" title="Home" class="brand">酒店辅助订购系统</a>
                                            </div><!-- /.site-name -->
                                        </div><!-- /.logo-wrapper -->

                                    </div><!-- /.row -->
                                </div><!-- /.navbar-inner -->
                            </div><!-- /.navbar -->
                        </div><!-- /.container -->
                    </div><!-- /#header-inner -->
                </div><!-- /#header -->
            </div><!-- /#header-wrapper -->

            <!-- CONTENT -->
            <div id="content">
                <div class="container">
                    <div>
                        <div id="main">
                            <div class="our-agents-large">
                                <h2 class="page-header">订单列表</h2>

                                <div class="content">
                                    <div class="row">
                                        <div class="col-md-12">
                                            <!-- Custom Tabs -->
                                            <div class="nav-tabs-custom">
                                                <ul class="nav nav-tabs">
                                                    <li class="active"><a href="#tab_1" data-toggle="tab">未完成订单</a></li>
                                                    <li><a href="#tab_2" data-toggle="tab">已完成订单</a></li>

                                                    <!--<div class="box-tools" style="text-align: right">-->
                                                        <!--<div class="input-group input-group-sm" style="width: 150px;">-->
                                                            <!--<input type="text" name="table_search" class="form-control pull-right" placeholder="Search">-->

                                                            <!--<div class="input-group-btn">-->
                                                                <!--<button type="submit" class="btn btn-default"><i class="fa fa-search"></i></button>-->
                                                            <!--</div>-->
                                                        <!--</div>-->
                                                    <!--</div>-->

                                                </ul>
                                            </div>
                                                <div class="tab-content">
                                                    <div class="tab-pane active" id="tab_1">
                                                        <table class="table table-hover">
                                                            <thead>
                                                                <tr>
                                                                    <th>酒店名</th>
                                                                    <th>房间类型</th>
                                                                    <th>订单状态</th>
                                                                    <th>入住时间</th>
                                                                    <th>退房时间</th>
                                                                    <th>房间数</th>
                                                                    <th>政策</th>
                                                                    <th>订单金额</th>
                                                                </tr>
                                                            </thead>
                                                            <tbody>
                                                                <tr th:each="order: ${ordersBook}">
                                                                    <td th:text="${order.hotelname}">Oranges</td>
                                                                    <td th:text="${order.roomname}">Oranges</td>
                                                                    <td th:text="${order.status}">Oranges</td>
                                                                    <td th:text="${order.checkin}">Oranges</td>
                                                                    <td th:text="${order.checkout}">Oranges</td>
                                                                    <td th:text="${order.roomnum}">Oranges</td>
                                                                    <td th:text="${order.policy}">Oranges</td>
                                                                    <td th:text="${order.orderamount}">Oranges</td>
                                                                    <td><a th:href= "'/order/view/'+ ${order.orderid}">查看</a></td>

                                                                </tr>

                                                            </tbody>
                                                        </table>

                                                    </div>
                                                    <!-- /.tab-pane -->
                                                    <div class="tab-pane" id="tab_2">
                                                        <table class="table table-hover">
                                                            <thead>
                                                            <tr>
                                                                <th>酒店名</th>
                                                                <th>房间类型</th>
                                                                <th>订单状态</th>
                                                                <th>入住时间</th>
                                                                <th>退房时间</th>
                                                                <th>房间数</th>
                                                                <th>政策</th>
                                                                <th>订单金额</th>
                                                            </tr>
                                                            </thead>
                                                            <tbody>
                                                            <tr th:each="order: ${ordersConfirm}">
                                                                <td th:text="${order.hotelname}">Oranges</td>
                                                                <td th:text="${order.roomname}">Oranges</td>
                                                                <td th:text="${order.status}">Oranges</td>
                                                                <td th:text="${order.checkin}">Oranges</td>
                                                                <td th:text="${order.checkout}">Oranges</td>
                                                                <td th:text="${order.roomnum}">Oranges</td>
                                                                <td th:text="${order.policy}">Oranges</td>
                                                                <td th:text="${order.orderamount}">Oranges</td>
                                                                <td><a th:href= "'/order/view/'+ ${order.orderid}">查看</a></td>

                                                            </tr>
                                                            <tr th:each="order: ${ordersCancel}">
                                                                <td th:text="${order.hotelname}">Oranges</td>
                                                                <td th:text="${order.roomname}">Oranges</td>
                                                                <td th:text="${order.status}">Oranges</td>
                                                                <td th:text="${order.checkin}">Oranges</td>
                                                                <td th:text="${order.checkout}">Oranges</td>
                                                                <td th:text="${order.roomnum}">Oranges</td>
                                                                <td th:text="${order.policy}">Oranges</td>
                                                                <td th:text="${order.orderamount}">Oranges</td>
                                                                <td><a th:href= "'/order/view/'+ ${order.orderid}">查看</a></td>
                                                            </tr>
                                                            </tbody>
                                                        </table>
                                                    </div>
                                                    <!-- /.tab-pane -->

                                                </div>
                                                <!-- /.tab-content -->
                                            </div>
                                            <!-- nav-tabs-custom -->
                                        </div>
                                        <!-- /.col -->

                                    </div><!-- /.row -->
                                </div><!-- /.content -->
                            </div>
                            <!-- /.our-agents -->
                        </div>
                    </div>
                </div>
            </div>
            <!-- /#content -->
        </div>
        <!-- /#wrapper-inner -->

        <!-- Footer -->
        <div id="footer-wrapper">
            <div id="footer" class="footer container">
                <div id="footer-inner">
                    <div class="row">
                        <div class="span6 copyright">
                            <p>Created by TEAM26 CMJ</p>
                        </div><!-- /.copyright -->
                    </div><!-- /.row -->
                </div><!-- /#footer-inner -->
            </div><!-- /#footer -->
        </div><!-- /#footer-wrapper -->
    </div><!-- /#wrapper -->
</div><!-- /#wrapper-outer -->

<div class="palette">
    <div class="toggle">
        <a href="#">Toggle</a>
    </div><!-- /.toggle -->

    <div class="inner">
        <div class="headers">
            <h2>Header styles</h2>
            <ul>
                <li><a class="header-light">Light</a></li>
                <li><a class="header-normal">Normal</a></li>
                <li><a class="header-dark">Dark</a></li>
            </ul>
        </div><!-- /.headers -->

        <div class="patterns">
            <h2>Background patterns</h2>
            <ul>
                <li><a class="pattern-cloth-alike">cloth-alike</a></li>
                <li><a class="pattern-corrugation">corrugation</a></li>
                <li><a class="pattern-diagonal-noise">diagonal-noise</a></li>
                <li><a class="pattern-dust">dust</a></li>
                <li><a class="pattern-fabric-plaid">fabric-plaid</a></li>
                <li><a class="pattern-farmer">farmer</a></li>
                <li><a class="pattern-grid-noise">grid-noise</a></li>
                <li><a class="pattern-lghtmesh">lghtmesh</a></li>
                <li><a class="pattern-pw-maze-white">pw-maze-white</a></li>
                <li><a class="pattern-none">none</a></li>
            </ul>
        </div>

        <div class="colors">
            <h2>Color variants</h2>
            <ul>
                <li><a th:href="@{/assets/css/realia-red.css}" class="red">Red</a></li>
                <li><a th:href="@{/assets/css/realia-magenta.css}" class="magenta">Magenta</a></li>
                <li><a th:href="@{/assets/css/realia-brown.css}" class="brown">Brown</a></li>
                <li><a th:href="@{/assets/css/realia-orange.css}" class="orange">Orange</a></li>
                <li><a th:href="@{/assets/css/realia-brown-dark.css}" class="brown-dark">Brown dark</a></li>

                <li><a th:href="@{/assets/css/realia-gray-red.css}" class="gray-red">Gray Red</a></li>
                <li><a th:href="@{/assets/css/realia-gray-magenta.css}" class="gray-magenta">Gray Magenta</a></li>
                <li><a th:href="@{/assets/css/realia-gray-brown.css}" class="gray-brown">Gray Brown</a></li>
                <li><a th:href="@{/assets/css/realia-gray-orange.css}" class="gray-orange">Gray Orange</a></li>
                <li><a th:href="@{/assets/css/realia-gray-brown-dark.css}" class="gray-brown-dark">Gray Brown dark</a></li>

                <li><a th:href="@{/assets/css/realia-green-light.css}" class="green-light">Green light</a></li>
                <li><a th:href="@{/assets/css/realia-green.css}" class="green">Green</a></li>
                <li><a th:href="@{/assets/css/realia-turquiose.css}" class="turquiose">Turquiose</a></li>
                <li><a th:href="@{/assets/css/realia-blue.css}" class="blue">Blue</a></li>
                <li><a th:href="@{/assets/css/realia-violet.css}" class="violet">Violet</a></li>

                <li><a th:href="@{/assets/css/realia-gray-green-light.css}" class="gray-green-light">Gray Green light</a></li>
                <li><a th:href="@{/assets/css/realia-gray-green.css}" class="gray-green">Gray Green</a></li>
                <li><a th:href="@{/assets/css/realia-gray-turquiose.css}" class="gray-turquiose">Gray Turquiose</a></li>
                <li><a th:href="@{/assets/css/realia-gray-blue.css}" class="gray-blue">Gray Blue</a></li>
                <li><a th:href="@{/assets/css/realia-gray-violet.css}" class="gray-violet">Gray Violet</a></li>
            </ul>
        </div><!-- /.colors -->

        <a href="#" class="btn btn-primary reset">Reset default</a>
    </div><!-- /.inner -->
</div><!-- /.palette -->

<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?v=3&amp;sensor=true"></script>
<script type="text/javascript" th:src="@{/assets/js/jquery.js}"></script>
<script type="text/javascript" th:src="@{/assets/js/jquery.ezmark.js}"></script>
<script type="text/javascript" th:src="@{/assets/js/jquery.currency.js}"></script>
<script type="text/javascript" th:src="@{/assets/js/jquery.cookie.js}"></script>
<script type="text/javascript" th:src="@{/assets/js/retina.js}"></script>
<script type="text/javascript" th:src="@{/assets/js/bootstrap.min.js}"></script>
<script type="text/javascript" th:src="@{/assets/js/carousel.js}"></script>
<script type="text/javascript" th:src="@{/assets/js/gmap3.min.js}"></script>
<script type="text/javascript" th:src="@{/assets/js/gmap3.infobox.min.js}"></script>
<script type="text/javascript" th:src="@{/assets/libraries/jquery-ui-1.10.2.custom/js/jquery-ui-1.10.2.custom.min.js}"></script>
<script type="text/javascript" th:src="@{/assets/libraries/chosen/chosen.jquery.min.js}"></script>
<script type="text/javascript" th:src="@{/assets/libraries/iosslider/_src/jquery.iosslider.min.js}"></script>
<script type="text/javascript" th:src="@{/assets/libraries/bootstrap-fileupload/bootstrap-fileupload.js}"></script>
<script type="text/javascript" th:src="@{/assets/js/realia.js}"></script>

<!-- jQuery 3 -->
<script th:src="@{/AdminLTE/bower_components/jquery/dist/jquery.min.js}"></script>
<!-- Bootstrap 3.3.7 -->
<script th:src="@{/AdminLTE/bower_components/bootstrap/dist/js/bootstrap.min.js}"></script>
<!-- Select2 -->
<script th:src="@{/AdminLTE/bower_components/select2/dist/js/select2.full.min.js}"></script>
<!-- InputMask -->
<script th:src="@{/AdminLTE/plugins/input-mask/jquery.inputmask.js}"></script>
<script th:src="@{/AdminLTE/plugins/input-mask/jquery.inputmask.date.extensions.js}"></script>
<script th:src="@{/AdminLTE/plugins/input-mask/jquery.inputmask.extensions.js}"></script>
<!-- date-range-picker -->
<script th:src="@{/AdminLTE/bower_components/moment/min/moment.min.js}"></script>
<script th:src="@{/AdminLTE/bower_components/bootstrap-daterangepicker/daterangepicker.js}"></script>
<!-- bootstrap datepicker -->
<script th:src="@{/AdminLTE/bower_components/bootstrap-datepicker/dist/js/bootstrap-datepicker.min.js}"></script>
<!-- bootstrap color picker -->
<script th:src="@{/AdminLTE/bower_components/bootstrap-colorpicker/dist/js/bootstrap-colorpicker.min.js}"></script>
<!-- bootstrap time picker -->
<script th:src="@{/AdminLTE/plugins/timepicker/bootstrap-timepicker.min.js}"></script>
<!-- SlimScroll -->
<script th:src="@{/AdminLTE/bower_components/jquery-slimscroll/jquery.slimscroll.min.js}"></script>
<!-- iCheck 1.0.1 -->
<script th:src="@{/AdminLTE/plugins/iCheck/icheck.min.js}"></script>
<!-- FastClick -->
<script th:src="@{/AdminLTE/bower_components/fastclick/lib/fastclick.js}"></script>
<!-- AdminLTE App -->
<script th:src="@{/AdminLTE/dist/js/adminlte.min.js}"></script>
<!-- AdminLTE for demo purposes -->
<script th:src="@{/AdminLTE/dist/js/demo.js}"></script>
<!-- Page script -->

</body>
</html>